// 路由文件

import VueRouter from "vue-router"
import HomeContainer from "./components/tabbar/HomeContainer.vue"
import MemberContainer from "./components/tabbar/MemberContainer.vue"
import ShopCartContainer from "./components/tabbar/ShopCartContainer.vue"
import SearchContainer from "./components/tabbar/SearchContainer.vue"

// 创建一个路由对象
let router = new VueRouter({
    routes:[
        {path: "/", redirect: "/home"},
        {path: "/home", component: HomeContainer},
        {path: "/member", component: MemberContainer},
        {path: "/shopcart", component: ShopCartContainer},
        {path: "/search", component: SearchContainer}
    ],
    linkActiveClass: 'mui-active'
})

export default router